const workflow = {
  state: {
    promoterDrawer: false,
    // 审批人抽屉开关
    approverDrawer: false,
    // 审批人配置
    approverConfig: {
    },
    copyerDrawer: false,
    copyerConfig: {},
    // 条件抽屉开关
    conditionDrawer: false,
    // 条件配置
    conditionsConfig: {
      conditionNodes: []
    }
  },
  mutations: {
    updatePromoter(state, promoterDrawer) {
      state.promoterDrawer = promoterDrawer
    },
    updateApprover(state, approverDrawer) {
      state.approverDrawer = approverDrawer
    },
    updateApproverConfig(state, approverConfig) {
      state.approverConfig = approverConfig
    },
    updateCopyer(state, copyerDrawer) {
      state.copyerDrawer = copyerDrawer
    },
    updateCopyerConfig(state, copyerConfig) {
      state.copyerConfig = copyerConfig
    },
    updateCondition(state, conditionDrawer) {
      state.conditionDrawer = conditionDrawer
    },
    updateConditionsConfig(state, conditionsConfig) {
      state.conditionsConfig = conditionsConfig
    }
  },
  actions: {}
}

export default workflow
